<?php
// +----------------------------------------------------------------------
//            -------------------------
//           /   / ----------------\  \
//          /   /             \  \
//         /   /              /  /
//        /   /    /-------------- /  /
//       /   /    /-------------------\  \
//      /   /                   \  \
//     /   /                     \  \
//    /   /                      /  /
//   /   /      /----------------------- /  /
//  /-----/      /---------------------------/
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://baimifan.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: Sage 2016/4/18  11:58
// +----------------------------------------------------------------------
namespace Common\Model;
use Think\Model;

/*
 * Error Log
 * 记录error
 * */
class ErrorModel extends Model
{
    protected $tableName="Log_error";
    //创建会员卡,并创建用户,根据信息
    function log($info){
        $this->data(['model'=>CONTROLLER_NAME.'_'.ACTION_NAME,'error'=>$info])->add();
    }
}